<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">

    <div class="row ">

        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="searchform.supplier_name" placeholder="供应商名称">            
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="searchform.name" placeholder="联系人">
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="searchform.mobile" placeholder="联系人电话">            
        </div>
        <div class="col-sm-2">
            <!--<input type="text" class="form-control" ng-model="searchform.title" placeholder="状态">-->
            <ui-select ng-model="searchform.state" theme="bootstrap" >
                <ui-select-match placeholder="状态">
                    {{$select.selected.label}}
                </ui-select-match>
                <ui-select-choices repeat="state.value as state in statearr | filter: $select.search">
                    <span ng-bind-html="state.label | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
        <div class="col-sm-2 col-sm-offset-2">
            <button type="button btn" class="btn btn-block btn-info" ng-click="getlist()">立即搜索</button>
        </div>
    </div>

</div>
</div>
</div> 
<!-- searchArea -->

<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
                <tr>
                    <th class="col-md-1 text-center">供应商名称</th>
                    <th class="col-md-1 text-center">联系人(电话)</th>
                    <th class="col-md-1 text-center">合作项目</th>
                    <th class="col-md-2 text-center">供应商简介
                        <br>供货产品,产品供货价
                    </th>
                    <th class="col-md-1 text-center">市场价</th>
                    <th class="col-md-1 text-center">申请人(时间)</th>
                    <th class="col-md-1 text-center">修改时间</th>
                    <th class="col-md-1 text-center">确认人</th>
                    <th class="col-md-1 text-center">状态</th>
                    <th class="col-md-1 text-center">备注</th>
                    <th class="col-md-1 text-center">操作</th>
                </thead>
                <tbody>
                <tr ng-repeat="obj in objs">
                    <td class="text-center">{{obj.supplier_name}}</td>
                    <td class="text-center">{{obj.name}}<br>{{obj.mobile}}</td>
                    <td class="text-center">{{obj.sale_category}}</td>
                    <td class="text-center">{{obj.supplier_profile}}
                        <br>{{obj.supply_product}},{{obj.product_offer_price}}
                    </td>
                    <td class="text-center">{{obj.product_market_price | currency : '¥'}}</td>
                    <td class="text-center">{{obj.apply_name}}<br>{{obj.apply_date}}
                    </td>
                    <td class="text-center">{{obj.update_date}}</td>
                    <td class="text-center">{{obj.confirm_name}}</td>
                    
                    <td class="text-center">{{obj.state_name}}</td>
                    <td class="text-center">{{obj.remarks}}</td>
                    <td class="text-center">
                      <a ng-show="obj.state =='0'" ng-click="supplierconfirm(obj)" class="btn btn-success btn-xs">确认</a>
                      <!--<a ng-show="obj.state =='1'" ng-click="confirmed(obj.id,obj.state,obj.confirm_name)" class="btn btn-success btn-xs">已确认</a>-->
                    </td>
                </tr>
                </tbody>
        </table>
        <div class="text-right">
             <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="getlist()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>







  

<!--<div class="col-sm-12">
  <div class="panel panel-default">
      <div class="panel-body">
          <div class="form-group form-inline">
              <div class="col-sm-12">
                    <label for="inputLottry" class="control-label">供应商列表</label>
              </div>
          </div>
      </div>
  </div>
  <div class="panel panel-default">
    <table class="table table-bordered">
      <thead>
        <tr>
          <th class="col-md-1 text-center">供应商名称</th>
          <th class="col-md-1 text-center">联系人(电话)</th>
          <th class="col-md-1 text-center">合作范围</th>
          <th class="col-md-2 text-center">供应商简介
              <br>供货产品,产品供货价
          </th>
          <th class="col-md-1 text-center">店铺类型</th>
          <th class="col-md-1 text-center">申请人(日期)</th>
          <th class="col-md-1 text-center">修改时间</th>
          <th class="col-md-1 text-center">确认人</th>
          <th class="col-md-1 text-center">状态</th>
          <th class="col-md-1 text-center">备注</th>
          <th class="col-md-1 text-center">操作</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="obj in objs">
          <td class="text-center">{{obj.supplier_name}}</td>
          <td class="text-center">{{obj.name}}<br>{{obj.mobile}}
          </td>
          <td class="text-center">{{obj.sale_category}}</td>
          <td class="text-center">{{obj.supplier_profile}}
              <br>{{obj.supply_product}} {{obj.product_offer_price}}
          </td>
          
          <td ng-show="obj.assist_sign==0" class="text-center">单店</td>
          <td ng-show="obj.assist_sign==1" class="text-center">连锁</td>
          <td class="text-center">{{obj.apply_name}}<br>{{obj.apply_date}}
          </td>
          <td class="text-center">{{obj.update_date}}</td>
          <td class="text-center">{{obj.confirm_name}}</td>
          
          <td class="text-center">{{obj.state_name}}</td>
          <td class="text-center">{{obj.remarks}}</td>
          <td class="text-center">
            <a ng-show="obj.state =='0'" ng-click="supplierconfirm(obj)" class="btn btn-danger btn-xs">确认</a>
            <a ng-show="obj.state =='1'" ng-click="confirmed(obj.id,obj.state,obj.confirm_name)" class="btn btn-success btn-xs">已确认</a>
          </td>

        </tr>
      </tbody>
    </table>

  </div>
</div>
-->
